package com.yq.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yq.demo.domain.Demo;
import com.yq.demo.service.DemoService;
import com.yq.demo.mapper.DemoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class DemoServiceImpl extends ServiceImpl<DemoMapper, Demo>
    implements DemoService {

    @Autowired
    private DemoMapper demoMapper;


    @Override
    public List<Demo> findName(String name) {
        return demoMapper.getName(name);
    }

    @Override
    public int updateDemo(Demo demo) {
        return demoMapper.updateDemo(demo);
    }

    @Override
    public void addDemo(Demo demo) {
         demoMapper.addDemo(demo);
    }


}




